const HomePage = () => import('../views/homepage/HomePage')

const FriendCircle = () => import('../views/friendcircle/FriendCircle')
const PublicDynamicContent = () => import('../views/friendcircle/PublicDynamicContent')

const Mine = () => import('../views/mine/Mine')

const RentState = () => import('../views/rentstate/RentState')
const UpDataHouseInfo = () => import('../views/rentstate/UpDataHouseInfo')
const AllState = () => import('../views/rentstate/childcomps/AllState')
const RentOut = () => import('../views/rentstate/childcomps/RentOut')
const SoldOut = () => import('../views/rentstate/childcomps/SoldOut')
const NoRent = () => import('../views/rentstate/childcomps/NoRent')
const AwaitCheck = () => import('../views/rentstate/childcomps/AwaitCheck')

const Login = () => import('../views/login/Login')
const GetPassword = () => import('../views/login/GetPassword')

const Register = () => import('../views/register/Register')

const SerchHouse = () => import('../views/serchhouse/SerchHouse')

const AreaSearch = () => import('../views/areasearch/AreaSearch')
const HotHouse = () => import('../views/areasearch/childcomps/HotHouse')
const IndependentWc = () => import('../views/areasearch/childcomps/IndependentWc')
const SpriceAscending = () => import('../views/areasearch/childcomps/SpriceAscending')
const SpriceDescending = () => import('../views/areasearch/childcomps/SpriceDescending')
const Synthesize = () => import('../views/areasearch/childcomps/Synthesize')


const HotCity = () => import('../views/hotcity/HotCity')
const HouseDetail = () => import('../views/housedetail/HouseDetail')

const UpDataRegisterInfo = () => import('../views/updatainfo/UpDataRegisterInfo')
const Logout = () => import('../views/updatainfo/Logout')
const UpDataPassword = () => import('../views/updatainfo/UpDataPassword')
const UpDataBaseInfo = () => import('../views/updatainfo/UpDataBaseInfo')

const HouseRentOut = () => import('../views/ownerservice/houserentout/HouseRentOut')
const PublicHouseSucceed = () => import('../views/ownerservice/houserentout/PublicHouseSucceed')


const HouseAppiontment = () => import('../views/ownerservice/houseappiontment/HouseAppiontment')
const Untreated = () => import('../views/ownerservice/houseappiontment/Untreated')
const Processed = () => import('../views/ownerservice/houseappiontment/Processed')


const LogOrReg = () => import('../views/mine/childcomps/logooreg/LogOrReg')

const AllCollect = () => import('../views/mycollect/AllCollect')
const BusinessHouseCollect = () => import('../views/mycollect/BusinessHouseCollect')
const OnlyWC = () => import('../views/mycollect/OnlyWC')
const PlainHouseCollect = () => import('../views/mycollect/PlainHouseCollect')

const DynamicMine = () => import('../views/dynamicmannag/DynamicMine')
const Comment = () => import('../views/dynamicmannag/Comment')
const MyPraise = () => import('../views/dynamicmannag/MyPraise')
const MyDynamic = () => import('../views/dynamicmannag/MyDynamic')

const MyAppointment = () => import('../views/myappointment/MyAppointment')
const AppointmentDetail = () => import('../views/myappointment/AppointmentDetail')
const Pending = () => import('../views/myappointment/pending/Pending')
const AwaitLookHouse = () => import('../views/myappointment/awaitlookhouse/AwaitLookHouse')
const AwaitVluate = () => import('../views/myappointment/awaitvluate/AwaitVluate')
const SuccessHouse = () => import('../views/myappointment/successhouse/SuccessHouse')
const CommentHouse = () => import('../views/myappointment/CommentHouse')

const toAppointmentHouse = () => import('../views/toappointmenthouse/toAppointmentHouse')

export default [{
  path: '/',
  component: HomePage
}, {
  path: '/friendcircle',
  component: FriendCircle
}, {
  path: '/rentstate',
  component: RentState,
  children: [{
    path: '/',
    redirect: 'allstate'
  }, {
    path: 'allstate',
    component: AllState
  }, {
    path: 'rentout',
    component: RentOut
  }, {
    path: 'norent',
    component: NoRent
  }, {
    path: "awaitcheck",
    component: AwaitCheck
  }, {
    path: 'soldout',
    component: SoldOut
  }]
},{
  path:"/updatahouseinfo",
  component:UpDataHouseInfo
}, {
  path: '/mine',
  component: Mine
}, {
  path: '/login',
  component: Login
}, {
  path: '/getpassword',
  component: GetPassword
}, {
  path: '/register',
  component: Register
}, {
  path: '/logorreg',
  component: LogOrReg
}, {
  path: '/serchhouse',
  component: SerchHouse
}, {
  path: '/areasearch',
  component: AreaSearch,
  children: [{
    path: '/',
    redirect: 'synthesize'
  }, {
    path: 'hothouse',
    component: HotHouse
  }, , {
    path: 'independentwc',
    component: IndependentWc
  }, {
    path: 'spriceascending',
    component: SpriceAscending
  }, {
    path: 'spricedescending',
    component: SpriceDescending
  }, {
    path: 'synthesize',
    component: Synthesize
  }]
}, {
  path: '/hotcity',
  component: HotCity
}, {
  path: '/housedetail',
  component: HouseDetail
}, {
  path: '/updatainfo',
  component: UpDataRegisterInfo
}, {
  path: '/logout',
  component: Logout
}, {
  path: '/updatapassword',
  component: UpDataPassword
}, {
  path: '/updatabaseinfo',
  component: UpDataBaseInfo
}, {
  path: '/houserentout',
  component: HouseRentOut
}, {
  path: '/publichousesucceed',
  component: PublicHouseSucceed
}, {
  path: '/houseappiontment',
  component: HouseAppiontment,
  children: [{
    path: "/",
    redirect: "untreated"
  }, {
    path: "untreated",
    component: Untreated
  }, {
    path: "processed",
    component: Processed
  }]
}, {
  path: '/publicdynamiccontent',
  component: PublicDynamicContent
}, {
  path: "/allcollect",
  component: AllCollect
}, {
  path: "/businesshousecollect",
  component: BusinessHouseCollect
}, {
  path: "/onlywc",
  component: OnlyWC
}, {
  path: "/plainhousecollect",
  component: PlainHouseCollect
}, {
  path: '/dynamicmine',
  component: DynamicMine
}, {
  path: '/comment',
  component: Comment
}, {
  path: '/mypraise',
  component: MyPraise
}, {
  path: '/mydynamic',
  component: MyDynamic
}, {
  path: '/myappointment',
  component: MyAppointment,
  children: [{
    path: "/",
    redirect: "pending"
  }, {
    path: "pending",
    component: Pending
  }, {
    path: "awaitlookhouse",
    component: AwaitLookHouse
  }, {
    path: "awaitvluate",
    component: AwaitVluate
  },{
    path:"successhouse",
    component:SuccessHouse
  }]
}, {
  path: "/appointmentdetail",
  component: AppointmentDetail
}, {
  path: "/toappointmenthouse",
  component: toAppointmentHouse
}, {
  path: "/commenthouse",
  component: CommentHouse
}]